package com.carpart.bean;

public class KeyValue {
	private String key;
	private String value;
	
	public KeyValue(){}
	
	public KeyValue(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	public String getKv(){
		if(null!=key && key.length()>0){
			return this.key;
		}
		return value;
	}
	
	@Override
	public String toString() {
		return value.toString();
	}
}
